import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Regin from '@/components/Regin'
import Register from '@/components/Register'
import Weibo from '@/components/Weibo'
import Callback from '@/components/Callback'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/regin',
      name: 'Regin',
      component: Regin
    },
    {
      path: '/re',
      name: 'Register',
      component: Register
    },
    {
      path: '/weibo',
      name: 'Weibo',
      component: Weibo
    },
    {
      path: '/callback',
      name: 'Callback',
      component: Callback
    },
  ]
})
